$(function(){
	//通过ajax技术进行获取新闻
	var date=new Date();
	$("a[name='readNews']").click(function(){
		 $.ajax({
		   url: "/amazon/NewsServlet?time="+date+"",
		   data:"nid="+$(this).prev().val(),
		   type:"post",
		   dataType:"json",
		   success:function(msg){
			   alert(msg);
			   alert($(".content").prev().html());
		   }
		 });
	});	
});

$(function(){
	$(".newsUL").children().children().css("text-decoration","none");
	$(".newsUL").children().hover(function(){$(this).css({"background-color":"red"});},function(){$(this).css({"background-color":"none"});});
	
});